package cn.gson.springboot.model.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

@Mapper
public interface AdviceMapper {
	//医嘱id查医嘱详情
	public JSONArray findAdDetail(@Param("aid")Integer aid);
	
	//患者查询
	public JSONArray findPatient(@Param("did")Integer did);
	
	//病人所有医嘱详情
	public JSONArray findAdviceDetails(@Param("hid")Integer hid);
	
	
	//执行记录
	public JSONArray findAdviceRecord(@Param("hid")Integer hid);
	
	//所有医嘱
	public JSONArray findAdvice(@Param("did")Integer did,
			@Param("str")String str);
}
